package com.googlecode.montelin.server.domain;

import javax.persistence.Embedded;
import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Entity;

@Entity
@Cached
public class User extends AbstractEntity {

	@Embedded
	Address address;

	String fax;

	String mail;

	String mobilePhone;

	@Id
	String name;

	String phone;

	public User() {
	}

	public User(String name) {
		setName(name);
	}

	public Address getAddress() {
		return address;
	}

	public String getFax() {
		return fax;
	}

	public String getMail() {
		return mail;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public String getName() {
		return name;
	}

	public String getPhone() {
		return phone;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

}
